{extend name="layout"/}

{block name="breadcrumb"}
<h2>收藏帖子</h2>
<ol class="breadcrumb">
    <li><a href="{:url('index/index')}">首页</a></li>
    <li><strong>收藏帖子</strong></li>
</ol>
{/block}

{block name="search"}
{include file='tie_ba_collect/search'/}
{/block}

{block name="main"}
<div class="ibox float-e-margins">
    <div class="ibox-title">
        <h5>收藏帖子</h5>
    </div>
    <div class="ibox-content">
        <div class="table-responsive">
            <p>共 {$count} 条数据</p>
            <table class="table table-striped">
                <thead>
                <tr>
                    <th>ID</th>
                    <th>发帖用户</th>
                    <th>分类</th>
                    <th>置顶</th>
                    <th>点赞数</th>
                    <th>评论数</th>
                    <th>审核状态</th>
                    <th>创建时间</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
                {foreach $model as $key=>$vo }
                <tr>
                    <td>{$vo.tie_id}</td>
                    <td>{$vo.oauth_id}</td>
                    <td>{$vo.name}</td>
                    <td>{$vo.isTopText}</td>
                    <td>{$vo.praise}</td>
                    <td>{$vo.comments}</td>
                    <td>
                        {if $vo.check_status == 1}
                        <span class="label label-info">{$vo.checkStatusText}</span>
                        {elseif ($vo.check_status == 2)}
                        <span class="label label-danger">{$vo.checkStatusText}</span>
                        {else/}
                        <span class="label label-warning">{$vo.checkStatusText}</span>
                        {/if}
                    </td>
                    <td>{$vo.create_time}</td>
                    <td>
                        <a href="{:url('tie_ba/detail', ['id' => $vo.tie_id, 'detailType' => 3])}" class="btn btn-success btn-xs">详情</a>
                        <a href="{:url('tie_ba_comment/index', ['tieId' => $vo.tie_id, 'detailType' => $detailType, 'oauth_id' => $search.oauth_id])}" class="btn btn-info btn-xs">评论列表</a>
                    </td>
                </tr>
                {/foreach}
                </tbody>
            </table>
            {$model|raw}
        </div>

    </div>
</div>
{/block}